package cn.itsource.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {

    private Integer id;
    @JsonFormat(pattern = "yyyy年 MM月 dd日   HH：mm：ss", timezone = "GMT+8")
    private Date checkInTime;
    @JsonFormat(pattern = "yyyy年 MM月 dd日   HH：mm：ss", timezone = "GMT+8")
    private Date checkOutTime;
    private Integer roomId;
    private Integer duration;
    private BigDecimal amount;

    // 房间信息
    private Room roomInfo;
    // 客户信息
    private Customer customerInfo;

}
